class CRectangle;

class CPoint//CRectangle.h
{
private:
    double x;
    double y;
public:
    CPoint(double,double);
    friend CRectangle;
};

class CRectangle
{
private:
    CPoint left_bottom;
    CPoint right_top;
public:
    CRectangle(const CPoint&,const CPoint&);
    void SetLPoint(const CPoint&);
    void SetRPoint(const CPoint&);
    double GetPerimeter();
    double GetArea();
};
